caching loggin errors